package com.qingke.OMS.Command;

import java.util.HashMap;
import java.util.Map;

import com.qingke.OMS.Command.Imp.LoginCommand;
import com.qingke.OMS.Command.Imp.SignupCommand;
import com.qingke.OMS.Unit.LauncherEnum;

public class UserLoginCommand extends StaticCommandFactory{
	protected static Map<LauncherEnum,Command> userLoginMap = new HashMap<LauncherEnum,Command>();
	static{
		userLoginMap.put(LauncherEnum.LOGIN, new LoginCommand());
		userLoginMap.put(LauncherEnum.SIGNUP, new SignupCommand());
		userLoginMap.put(LauncherEnum.EXIT, new ExitCommand());
	}

	public Command build(LauncherEnum cmd){
		Command command = userLoginMap.get(cmd);
		return command;
	}

}
